package cn.touna.jss.modules.custom.cheyiping.entity;

import java.util.ArrayList;
import java.util.List;

public class CityEntityExample {
    protected String orderByClause;

    protected boolean distinct;

    protected List<Criteria> oredCriteria;

    public CityEntityExample() {
        oredCriteria = new ArrayList<Criteria>();
    }

    public void setOrderByClause(String orderByClause) {
        this.orderByClause = orderByClause;
    }

    public String getOrderByClause() {
        return orderByClause;
    }

    public void setDistinct(boolean distinct) {
        this.distinct = distinct;
    }

    public boolean isDistinct() {
        return distinct;
    }

    public List<Criteria> getOredCriteria() {
        return oredCriteria;
    }

    public void or(Criteria criteria) {
        oredCriteria.add(criteria);
    }

    public Criteria or() {
        Criteria criteria = createCriteriaInternal();
        oredCriteria.add(criteria);
        return criteria;
    }

    public Criteria createCriteria() {
        Criteria criteria = createCriteriaInternal();
        if (oredCriteria.size() == 0) {
            oredCriteria.add(criteria);
        }
        return criteria;
    }

    protected Criteria createCriteriaInternal() {
        Criteria criteria = new Criteria();
        return criteria;
    }

    public void clear() {
        oredCriteria.clear();
        orderByClause = null;
        distinct = false;
    }

    protected abstract static class GeneratedCriteria {
        protected List<Criterion> criteria;

        protected GeneratedCriteria() {
            super();
            criteria = new ArrayList<Criterion>();
        }

        public boolean isValid() {
            return criteria.size() > 0;
        }

        public List<Criterion> getAllCriteria() {
            return criteria;
        }

        public List<Criterion> getCriteria() {
            return criteria;
        }

        protected void addCriterion(String condition) {
            if (condition == null) {
                throw new RuntimeException("Value for condition cannot be null");
            }
            criteria.add(new Criterion(condition));
        }

        protected void addCriterion(String condition, Object value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value));
        }

        protected void addCriterion(String condition, Object value1, Object value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value1, value2));
        }

        public Criteria andIdIsNull() {
            addCriterion("id is null");
            return (Criteria) this;
        }

        public Criteria andIdIsNotNull() {
            addCriterion("id is not null");
            return (Criteria) this;
        }

        public Criteria andIdEqualTo(Integer value) {
            addCriterion("id =", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdNotEqualTo(Integer value) {
            addCriterion("id <>", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdGreaterThan(Integer value) {
            addCriterion("id >", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdGreaterThanOrEqualTo(Integer value) {
            addCriterion("id >=", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdLessThan(Integer value) {
            addCriterion("id <", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdLessThanOrEqualTo(Integer value) {
            addCriterion("id <=", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdIn(List<Integer> values) {
            addCriterion("id in", values, "id");
            return (Criteria) this;
        }

        public Criteria andIdNotIn(List<Integer> values) {
            addCriterion("id not in", values, "id");
            return (Criteria) this;
        }

        public Criteria andIdBetween(Integer value1, Integer value2) {
            addCriterion("id between", value1, value2, "id");
            return (Criteria) this;
        }

        public Criteria andIdNotBetween(Integer value1, Integer value2) {
            addCriterion("id not between", value1, value2, "id");
            return (Criteria) this;
        }

        public Criteria andGbProvCodeIsNull() {
            addCriterion("gb_prov_code is null");
            return (Criteria) this;
        }

        public Criteria andGbProvCodeIsNotNull() {
            addCriterion("gb_prov_code is not null");
            return (Criteria) this;
        }

        public Criteria andGbProvCodeEqualTo(String value) {
            addCriterion("gb_prov_code =", value, "gbProvCode");
            return (Criteria) this;
        }

        public Criteria andGbProvCodeNotEqualTo(String value) {
            addCriterion("gb_prov_code <>", value, "gbProvCode");
            return (Criteria) this;
        }

        public Criteria andGbProvCodeGreaterThan(String value) {
            addCriterion("gb_prov_code >", value, "gbProvCode");
            return (Criteria) this;
        }

        public Criteria andGbProvCodeGreaterThanOrEqualTo(String value) {
            addCriterion("gb_prov_code >=", value, "gbProvCode");
            return (Criteria) this;
        }

        public Criteria andGbProvCodeLessThan(String value) {
            addCriterion("gb_prov_code <", value, "gbProvCode");
            return (Criteria) this;
        }

        public Criteria andGbProvCodeLessThanOrEqualTo(String value) {
            addCriterion("gb_prov_code <=", value, "gbProvCode");
            return (Criteria) this;
        }

        public Criteria andGbProvCodeLike(String value) {
            addCriterion("gb_prov_code like", value, "gbProvCode");
            return (Criteria) this;
        }

        public Criteria andGbProvCodeNotLike(String value) {
            addCriterion("gb_prov_code not like", value, "gbProvCode");
            return (Criteria) this;
        }

        public Criteria andGbProvCodeIn(List<String> values) {
            addCriterion("gb_prov_code in", values, "gbProvCode");
            return (Criteria) this;
        }

        public Criteria andGbProvCodeNotIn(List<String> values) {
            addCriterion("gb_prov_code not in", values, "gbProvCode");
            return (Criteria) this;
        }

        public Criteria andGbProvCodeBetween(String value1, String value2) {
            addCriterion("gb_prov_code between", value1, value2, "gbProvCode");
            return (Criteria) this;
        }

        public Criteria andGbProvCodeNotBetween(String value1, String value2) {
            addCriterion("gb_prov_code not between", value1, value2, "gbProvCode");
            return (Criteria) this;
        }

        public Criteria andGbProvNameIsNull() {
            addCriterion("gb_prov_name is null");
            return (Criteria) this;
        }

        public Criteria andGbProvNameIsNotNull() {
            addCriterion("gb_prov_name is not null");
            return (Criteria) this;
        }

        public Criteria andGbProvNameEqualTo(String value) {
            addCriterion("gb_prov_name =", value, "gbProvName");
            return (Criteria) this;
        }

        public Criteria andGbProvNameNotEqualTo(String value) {
            addCriterion("gb_prov_name <>", value, "gbProvName");
            return (Criteria) this;
        }

        public Criteria andGbProvNameGreaterThan(String value) {
            addCriterion("gb_prov_name >", value, "gbProvName");
            return (Criteria) this;
        }

        public Criteria andGbProvNameGreaterThanOrEqualTo(String value) {
            addCriterion("gb_prov_name >=", value, "gbProvName");
            return (Criteria) this;
        }

        public Criteria andGbProvNameLessThan(String value) {
            addCriterion("gb_prov_name <", value, "gbProvName");
            return (Criteria) this;
        }

        public Criteria andGbProvNameLessThanOrEqualTo(String value) {
            addCriterion("gb_prov_name <=", value, "gbProvName");
            return (Criteria) this;
        }

        public Criteria andGbProvNameLike(String value) {
            addCriterion("gb_prov_name like", value, "gbProvName");
            return (Criteria) this;
        }

        public Criteria andGbProvNameNotLike(String value) {
            addCriterion("gb_prov_name not like", value, "gbProvName");
            return (Criteria) this;
        }

        public Criteria andGbProvNameIn(List<String> values) {
            addCriterion("gb_prov_name in", values, "gbProvName");
            return (Criteria) this;
        }

        public Criteria andGbProvNameNotIn(List<String> values) {
            addCriterion("gb_prov_name not in", values, "gbProvName");
            return (Criteria) this;
        }

        public Criteria andGbProvNameBetween(String value1, String value2) {
            addCriterion("gb_prov_name between", value1, value2, "gbProvName");
            return (Criteria) this;
        }

        public Criteria andGbProvNameNotBetween(String value1, String value2) {
            addCriterion("gb_prov_name not between", value1, value2, "gbProvName");
            return (Criteria) this;
        }

        public Criteria andGbCityCodeIsNull() {
            addCriterion("gb_city_code is null");
            return (Criteria) this;
        }

        public Criteria andGbCityCodeIsNotNull() {
            addCriterion("gb_city_code is not null");
            return (Criteria) this;
        }

        public Criteria andGbCityCodeEqualTo(String value) {
            addCriterion("gb_city_code =", value, "gbCityCode");
            return (Criteria) this;
        }

        public Criteria andGbCityCodeNotEqualTo(String value) {
            addCriterion("gb_city_code <>", value, "gbCityCode");
            return (Criteria) this;
        }

        public Criteria andGbCityCodeGreaterThan(String value) {
            addCriterion("gb_city_code >", value, "gbCityCode");
            return (Criteria) this;
        }

        public Criteria andGbCityCodeGreaterThanOrEqualTo(String value) {
            addCriterion("gb_city_code >=", value, "gbCityCode");
            return (Criteria) this;
        }

        public Criteria andGbCityCodeLessThan(String value) {
            addCriterion("gb_city_code <", value, "gbCityCode");
            return (Criteria) this;
        }

        public Criteria andGbCityCodeLessThanOrEqualTo(String value) {
            addCriterion("gb_city_code <=", value, "gbCityCode");
            return (Criteria) this;
        }

        public Criteria andGbCityCodeLike(String value) {
            addCriterion("gb_city_code like", value, "gbCityCode");
            return (Criteria) this;
        }

        public Criteria andGbCityCodeNotLike(String value) {
            addCriterion("gb_city_code not like", value, "gbCityCode");
            return (Criteria) this;
        }

        public Criteria andGbCityCodeIn(List<String> values) {
            addCriterion("gb_city_code in", values, "gbCityCode");
            return (Criteria) this;
        }

        public Criteria andGbCityCodeNotIn(List<String> values) {
            addCriterion("gb_city_code not in", values, "gbCityCode");
            return (Criteria) this;
        }

        public Criteria andGbCityCodeBetween(String value1, String value2) {
            addCriterion("gb_city_code between", value1, value2, "gbCityCode");
            return (Criteria) this;
        }

        public Criteria andGbCityCodeNotBetween(String value1, String value2) {
            addCriterion("gb_city_code not between", value1, value2, "gbCityCode");
            return (Criteria) this;
        }

        public Criteria andGbCityNameIsNull() {
            addCriterion("gb_city_name is null");
            return (Criteria) this;
        }

        public Criteria andGbCityNameIsNotNull() {
            addCriterion("gb_city_name is not null");
            return (Criteria) this;
        }

        public Criteria andGbCityNameEqualTo(String value) {
            addCriterion("gb_city_name =", value, "gbCityName");
            return (Criteria) this;
        }

        public Criteria andGbCityNameNotEqualTo(String value) {
            addCriterion("gb_city_name <>", value, "gbCityName");
            return (Criteria) this;
        }

        public Criteria andGbCityNameGreaterThan(String value) {
            addCriterion("gb_city_name >", value, "gbCityName");
            return (Criteria) this;
        }

        public Criteria andGbCityNameGreaterThanOrEqualTo(String value) {
            addCriterion("gb_city_name >=", value, "gbCityName");
            return (Criteria) this;
        }

        public Criteria andGbCityNameLessThan(String value) {
            addCriterion("gb_city_name <", value, "gbCityName");
            return (Criteria) this;
        }

        public Criteria andGbCityNameLessThanOrEqualTo(String value) {
            addCriterion("gb_city_name <=", value, "gbCityName");
            return (Criteria) this;
        }

        public Criteria andGbCityNameLike(String value) {
            addCriterion("gb_city_name like", value, "gbCityName");
            return (Criteria) this;
        }

        public Criteria andGbCityNameNotLike(String value) {
            addCriterion("gb_city_name not like", value, "gbCityName");
            return (Criteria) this;
        }

        public Criteria andGbCityNameIn(List<String> values) {
            addCriterion("gb_city_name in", values, "gbCityName");
            return (Criteria) this;
        }

        public Criteria andGbCityNameNotIn(List<String> values) {
            addCriterion("gb_city_name not in", values, "gbCityName");
            return (Criteria) this;
        }

        public Criteria andGbCityNameBetween(String value1, String value2) {
            addCriterion("gb_city_name between", value1, value2, "gbCityName");
            return (Criteria) this;
        }

        public Criteria andGbCityNameNotBetween(String value1, String value2) {
            addCriterion("gb_city_name not between", value1, value2, "gbCityName");
            return (Criteria) this;
        }

        public Criteria andCar300CityCodeIsNull() {
            addCriterion("car300_city_code is null");
            return (Criteria) this;
        }

        public Criteria andCar300CityCodeIsNotNull() {
            addCriterion("car300_city_code is not null");
            return (Criteria) this;
        }

        public Criteria andCar300CityCodeEqualTo(String value) {
            addCriterion("car300_city_code =", value, "car300CityCode");
            return (Criteria) this;
        }

        public Criteria andCar300CityCodeNotEqualTo(String value) {
            addCriterion("car300_city_code <>", value, "car300CityCode");
            return (Criteria) this;
        }

        public Criteria andCar300CityCodeGreaterThan(String value) {
            addCriterion("car300_city_code >", value, "car300CityCode");
            return (Criteria) this;
        }

        public Criteria andCar300CityCodeGreaterThanOrEqualTo(String value) {
            addCriterion("car300_city_code >=", value, "car300CityCode");
            return (Criteria) this;
        }

        public Criteria andCar300CityCodeLessThan(String value) {
            addCriterion("car300_city_code <", value, "car300CityCode");
            return (Criteria) this;
        }

        public Criteria andCar300CityCodeLessThanOrEqualTo(String value) {
            addCriterion("car300_city_code <=", value, "car300CityCode");
            return (Criteria) this;
        }

        public Criteria andCar300CityCodeLike(String value) {
            addCriterion("car300_city_code like", value, "car300CityCode");
            return (Criteria) this;
        }

        public Criteria andCar300CityCodeNotLike(String value) {
            addCriterion("car300_city_code not like", value, "car300CityCode");
            return (Criteria) this;
        }

        public Criteria andCar300CityCodeIn(List<String> values) {
            addCriterion("car300_city_code in", values, "car300CityCode");
            return (Criteria) this;
        }

        public Criteria andCar300CityCodeNotIn(List<String> values) {
            addCriterion("car300_city_code not in", values, "car300CityCode");
            return (Criteria) this;
        }

        public Criteria andCar300CityCodeBetween(String value1, String value2) {
            addCriterion("car300_city_code between", value1, value2, "car300CityCode");
            return (Criteria) this;
        }

        public Criteria andCar300CityCodeNotBetween(String value1, String value2) {
            addCriterion("car300_city_code not between", value1, value2, "car300CityCode");
            return (Criteria) this;
        }

        public Criteria andJzgProvCodeIsNull() {
            addCriterion("jzg_prov_code is null");
            return (Criteria) this;
        }

        public Criteria andJzgProvCodeIsNotNull() {
            addCriterion("jzg_prov_code is not null");
            return (Criteria) this;
        }

        public Criteria andJzgProvCodeEqualTo(String value) {
            addCriterion("jzg_prov_code =", value, "jzgProvCode");
            return (Criteria) this;
        }

        public Criteria andJzgProvCodeNotEqualTo(String value) {
            addCriterion("jzg_prov_code <>", value, "jzgProvCode");
            return (Criteria) this;
        }

        public Criteria andJzgProvCodeGreaterThan(String value) {
            addCriterion("jzg_prov_code >", value, "jzgProvCode");
            return (Criteria) this;
        }

        public Criteria andJzgProvCodeGreaterThanOrEqualTo(String value) {
            addCriterion("jzg_prov_code >=", value, "jzgProvCode");
            return (Criteria) this;
        }

        public Criteria andJzgProvCodeLessThan(String value) {
            addCriterion("jzg_prov_code <", value, "jzgProvCode");
            return (Criteria) this;
        }

        public Criteria andJzgProvCodeLessThanOrEqualTo(String value) {
            addCriterion("jzg_prov_code <=", value, "jzgProvCode");
            return (Criteria) this;
        }

        public Criteria andJzgProvCodeLike(String value) {
            addCriterion("jzg_prov_code like", value, "jzgProvCode");
            return (Criteria) this;
        }

        public Criteria andJzgProvCodeNotLike(String value) {
            addCriterion("jzg_prov_code not like", value, "jzgProvCode");
            return (Criteria) this;
        }

        public Criteria andJzgProvCodeIn(List<String> values) {
            addCriterion("jzg_prov_code in", values, "jzgProvCode");
            return (Criteria) this;
        }

        public Criteria andJzgProvCodeNotIn(List<String> values) {
            addCriterion("jzg_prov_code not in", values, "jzgProvCode");
            return (Criteria) this;
        }

        public Criteria andJzgProvCodeBetween(String value1, String value2) {
            addCriterion("jzg_prov_code between", value1, value2, "jzgProvCode");
            return (Criteria) this;
        }

        public Criteria andJzgProvCodeNotBetween(String value1, String value2) {
            addCriterion("jzg_prov_code not between", value1, value2, "jzgProvCode");
            return (Criteria) this;
        }

        public Criteria andJzgCityCodeIsNull() {
            addCriterion("jzg_city_code is null");
            return (Criteria) this;
        }

        public Criteria andJzgCityCodeIsNotNull() {
            addCriterion("jzg_city_code is not null");
            return (Criteria) this;
        }

        public Criteria andJzgCityCodeEqualTo(String value) {
            addCriterion("jzg_city_code =", value, "jzgCityCode");
            return (Criteria) this;
        }

        public Criteria andJzgCityCodeNotEqualTo(String value) {
            addCriterion("jzg_city_code <>", value, "jzgCityCode");
            return (Criteria) this;
        }

        public Criteria andJzgCityCodeGreaterThan(String value) {
            addCriterion("jzg_city_code >", value, "jzgCityCode");
            return (Criteria) this;
        }

        public Criteria andJzgCityCodeGreaterThanOrEqualTo(String value) {
            addCriterion("jzg_city_code >=", value, "jzgCityCode");
            return (Criteria) this;
        }

        public Criteria andJzgCityCodeLessThan(String value) {
            addCriterion("jzg_city_code <", value, "jzgCityCode");
            return (Criteria) this;
        }

        public Criteria andJzgCityCodeLessThanOrEqualTo(String value) {
            addCriterion("jzg_city_code <=", value, "jzgCityCode");
            return (Criteria) this;
        }

        public Criteria andJzgCityCodeLike(String value) {
            addCriterion("jzg_city_code like", value, "jzgCityCode");
            return (Criteria) this;
        }

        public Criteria andJzgCityCodeNotLike(String value) {
            addCriterion("jzg_city_code not like", value, "jzgCityCode");
            return (Criteria) this;
        }

        public Criteria andJzgCityCodeIn(List<String> values) {
            addCriterion("jzg_city_code in", values, "jzgCityCode");
            return (Criteria) this;
        }

        public Criteria andJzgCityCodeNotIn(List<String> values) {
            addCriterion("jzg_city_code not in", values, "jzgCityCode");
            return (Criteria) this;
        }

        public Criteria andJzgCityCodeBetween(String value1, String value2) {
            addCriterion("jzg_city_code between", value1, value2, "jzgCityCode");
            return (Criteria) this;
        }

        public Criteria andJzgCityCodeNotBetween(String value1, String value2) {
            addCriterion("jzg_city_code not between", value1, value2, "jzgCityCode");
            return (Criteria) this;
        }

        public Criteria andJzgCityNameIsNull() {
            addCriterion("jzg_city_name is null");
            return (Criteria) this;
        }

        public Criteria andJzgCityNameIsNotNull() {
            addCriterion("jzg_city_name is not null");
            return (Criteria) this;
        }

        public Criteria andJzgCityNameEqualTo(String value) {
            addCriterion("jzg_city_name =", value, "jzgCityName");
            return (Criteria) this;
        }

        public Criteria andJzgCityNameNotEqualTo(String value) {
            addCriterion("jzg_city_name <>", value, "jzgCityName");
            return (Criteria) this;
        }

        public Criteria andJzgCityNameGreaterThan(String value) {
            addCriterion("jzg_city_name >", value, "jzgCityName");
            return (Criteria) this;
        }

        public Criteria andJzgCityNameGreaterThanOrEqualTo(String value) {
            addCriterion("jzg_city_name >=", value, "jzgCityName");
            return (Criteria) this;
        }

        public Criteria andJzgCityNameLessThan(String value) {
            addCriterion("jzg_city_name <", value, "jzgCityName");
            return (Criteria) this;
        }

        public Criteria andJzgCityNameLessThanOrEqualTo(String value) {
            addCriterion("jzg_city_name <=", value, "jzgCityName");
            return (Criteria) this;
        }

        public Criteria andJzgCityNameLike(String value) {
            addCriterion("jzg_city_name like", value, "jzgCityName");
            return (Criteria) this;
        }

        public Criteria andJzgCityNameNotLike(String value) {
            addCriterion("jzg_city_name not like", value, "jzgCityName");
            return (Criteria) this;
        }

        public Criteria andJzgCityNameIn(List<String> values) {
            addCriterion("jzg_city_name in", values, "jzgCityName");
            return (Criteria) this;
        }

        public Criteria andJzgCityNameNotIn(List<String> values) {
            addCriterion("jzg_city_name not in", values, "jzgCityName");
            return (Criteria) this;
        }

        public Criteria andJzgCityNameBetween(String value1, String value2) {
            addCriterion("jzg_city_name between", value1, value2, "jzgCityName");
            return (Criteria) this;
        }

        public Criteria andJzgCityNameNotBetween(String value1, String value2) {
            addCriterion("jzg_city_name not between", value1, value2, "jzgCityName");
            return (Criteria) this;
        }
    }

    public static class Criteria extends GeneratedCriteria {

        protected Criteria() {
            super();
        }
    }

    public static class Criterion {
        private String condition;

        private Object value;

        private Object secondValue;

        private boolean noValue;

        private boolean singleValue;

        private boolean betweenValue;

        private boolean listValue;

        private String typeHandler;

        public String getCondition() {
            return condition;
        }

        public Object getValue() {
            return value;
        }

        public Object getSecondValue() {
            return secondValue;
        }

        public boolean isNoValue() {
            return noValue;
        }

        public boolean isSingleValue() {
            return singleValue;
        }

        public boolean isBetweenValue() {
            return betweenValue;
        }

        public boolean isListValue() {
            return listValue;
        }

        public String getTypeHandler() {
            return typeHandler;
        }

        protected Criterion(String condition) {
            super();
            this.condition = condition;
            this.typeHandler = null;
            this.noValue = true;
        }

        protected Criterion(String condition, Object value, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.typeHandler = typeHandler;
            if (value instanceof List<?>) {
                this.listValue = true;
            } else {
                this.singleValue = true;
            }
        }

        protected Criterion(String condition, Object value) {
            this(condition, value, null);
        }

        protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.secondValue = secondValue;
            this.typeHandler = typeHandler;
            this.betweenValue = true;
        }

        protected Criterion(String condition, Object value, Object secondValue) {
            this(condition, value, secondValue, null);
        }
    }
}